﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using iTextSharp.text;
using iTextSharp.text.pdf;
using System.IO;
using WCFAvante;
using Spring.Objects.Factory.Xml;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
            Spring.Core.IO.IResource stream = new Spring.Core.IO.FileSystemResource("Config.xml");
            XmlObjectFactory xmlObjectFactory = new XmlObjectFactory(stream);
            
            ICargo domainObjectInterface = (ICargo) xmlObjectFactory.GetObject("Cargo");

            //MessageBox.Show("Name is " + domainObjectInterface.Name);
    }
    
    protected void LinkButtonAgregarCliente_Click(object sender, EventArgs e)
    {
        string cadena = "Clientes.aspx";
        Response.Redirect(cadena);
    }
    protected void LinkButtonModificarCliente_Click(object sender, EventArgs e)
    {
        string cadena = "ModificarCliente.aspx?QryString=I";
        Response.Redirect(cadena);
    }
    protected void LinkButtonHistorialClientes_Click(object sender, EventArgs e)
    {
        string cadena = "HistorialClientes.aspx?QryString=I";
        Response.Redirect(cadena);
    }

    protected void buttonRegresar(object sender, EventArgs e)
    {
        string direccion = "../Home.aspx";
        Response.Redirect(direccion);
    }

    protected void buttonAyuda(object sender, EventArgs e)
    {

    }

    protected void eliminarCliente(object sender, EventArgs e)
    {

    }

    protected void consultarCliente(object sender, EventArgs e)
    {

    }

    protected void modificarCliente(object sender, EventArgs e)
    {

    }




    protected void agregarTelefonoContacto(object sender, EventArgs e)
    {

    }

    protected void agregarTelefonoCliente(object sender, EventArgs e)
    {
        
    }

    protected void agregarContacto(object sender, EventArgs e)
    {
        
    }

    protected void ButtonAgregarGuardar_Click(object sender, EventArgs e)
    {
        
    }
    protected void Button7_Click(object sender, EventArgs e)
    {
        string cadena = "Gestion.aspx?QryString=M";
        Response.Redirect(cadena);
    }

    protected void Button8_Click(object sender, EventArgs e)
    {
        string cadena = "BuscarClientes.aspx?QryString=M";
        Response.Redirect(cadena);
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        string cadena = "BInsertarCandidato.aspx?QryString=M";
        Response.Redirect(cadena);
    }
}
